package com.hu.zhcc.shiro.service.HealthIntervention;

import com.hu.zhcc.shiro.dao.DiseaseMapper;
import com.hu.zhcc.shiro.entity.bo.HealthIntervention.Disease;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DiseaseServiceImpl implements DiseaseService {
    @Autowired
    private DiseaseMapper mapper;
    @Override
    public int deleteByPrimaryKey(Integer disId) {
        return mapper.deleteByPrimaryKey(disId);
    }

    @Override
    public int insertSelective(Disease record) {
        return mapper.insertSelective(record);
    }

    @Override
    public Disease selectByPrimaryKey(Integer disId) {
        return mapper.selectByPrimaryKey(disId);
    }

    @Override
    public List<Disease> selectByPrimaryKeyList() {
        return mapper.selectByPrimaryKeyList();
    }

    @Override
    public int updateByPrimaryKeySelective(Disease record) {
        return mapper.updateByPrimaryKeySelective(record);
    }
}
